// const mysql=require('mysql');
// const connection = mysql.createConnection({
//     host:'127.0.0.1',
//     user:'root',
//     password:'root',
//     database:'albx_38'
// });
const {connection}=require('./sqlhelper')
module.exports={
    userLogin(email,callback){
        let sql = `SELECT * FROM users WHERE email='${email}'`
        connection.query(sql,(e,r)=>{
            e&&console.log(e);
            callback(r[0]);
        })
    }
}